package hong.jun.config;

import feign.RequestInterceptor;
import hong.jun.filter.DefaultOAuth2FeignRequestInterceptor2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignInterceptorConfig2 {

    @Bean
    public RequestInterceptor oAuth2RequestInterceptor() {
        return new DefaultOAuth2FeignRequestInterceptor2();
    }
}
